package com.itcoon.transform4j.demo.domain;


import com.itcoon.common.core.enums.CodeEnum;
import com.itcoon.common.core.enums.DescribedEnum;

public enum Status implements CodeEnum, DescribedEnum {

    PAY_SUCCESS(1, "支付成功"),
    PAY_FAILURE(2, "支付失败"),
    FREEZEN(3, "冻结"),
    ;

    private final int value;

    private final String description;

    Status(int value, String description) {
        this.value = value;
        this.description = description;
    }

    @Override
    public String description() {
        return description;
    }

    @Override
    public Integer value() {
        return value;
    }
}
